//Macro for automatic counting of calyptras in RGB images in a black background// //Ibáñez et al. CBGG// //Batch process of all the jpg images in the supplied directory// //The following macro code provides a macro version of the BATCH PROCESS command// dir1 = getDirectory("Choose Source Directory "); //format = getFormat(); format="jpeg"; dir2 = getDirectory("Choose Destination Directory "); list = getFileList(dir1); setBatchMode(true); for (i=0; i